import request from '@/utils/request'
// 开放接口(不需要登录)
export function openApiSysBannerQuery(data) {
	//首页轮播图信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysBanner/query',
		params: data,
	})
}

export function openApiSysNoticeQueryNoticeBySys(data) {
	//查询通知公告
	return request({
		method: 'get',
		url: '/openApi/sysNotice/queryNoticeBySys',
		params: data,
	})
}
export function openApiSysNoticeQueryNoticeBySysIds(data) {
	//查询通知公告 一条
	return request({
		method: 'get',
		url: '/openApi/sysNotice/queryNoticeBySys',
		params: data,
	})
}

export function openApiSysPolicyQuery(data) {
	//政策法规信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysPolicy/query',
		params: data,
	})
}

export function openApiSysPolicyQueryIds(data) {
	//政策法规信息分页列表  一条
	return request({
		method: 'get',
		url: '/openApi/sysPolicy/query',
		params: data,
	})
}
export function openApiSysPolicyQueryById(id) {
	//政策法规信息分页列表  一条 点击量加一
	return request({
		method: 'get',
		url: '/openApi/sysPolicy/query/' + id,
	})
}

export function openApiSysAddressQueryData(data) {
	//网站友情链接信息列表
	return request({
		method: 'get',
		url: '/openApi/tbSysAddress/queryData',
		params: data,
	})
}

export function openApiSysAddressQueryFriendlyLink(data) {
	//网站友情链接信息列表
	return request({
		method: 'get',
		url: '/openApi/tbSysAddress/queryFriendlyLink',
		params: data,
	})
}

export function openApiSysIdeologicalEducationQuery(data) {
	//思政体系信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysIdeologicalEducation/query',
		params: data,
	})
}

export function openApiSysIdeologicalEducationQueryId(id) {
	//思政体系信息 单个
	return request({
		method: 'get',
		url: '/openApi/sysIdeologicalEducation/query/' + id,
	})
}

export function openApiSysBaseInfoQuery(data) {
	//思政体系信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysBaseInfo/query',
		params: data,
	})
}

export function openApiSysTrainingLevelQuery(data) {
	//培训层次管理信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysTrainingLevel/query',
		params: data,
	})
}

export function openApiSysCourseQuery(data) {
	//课程管理信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysCourse/query',
		params: data,
	})
}

export function openApiSysDeptQuery(data) {
	//查询部门列表
	return request({
		method: 'get',
		url: '/openApi/tbSysDept/query',
		params: data,
	})
}

export function openApiSysLabelQuery(data) {
	//查询标签表列表
	return request({
		method: 'get',
		url: '/openApi/tbSysLabel/queryData',
		params: data,
	})
}

export function openApiSysCourseChapterQuery(data) {
	//查询一条课程章节管理信息
	return request({
		method: 'get',
		url: '/openApi/sysCourseChapter/query',
		params: data,
	})
}

export function openApiSysKnowledgeQuery(data) {
	//知识点管理信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysKnowledge/query',
		params: data,
	})
}

export function openApiSysEvaluateQuery(data) {
	//评价管理信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysEvaluate/query',
		params: data,
	})
}

export function openApiSysConcernedLogQuery(data) {
	//评价管理信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysConcernedLog/query',
		params: data,
	})
}

export function openApiSysCourseSearch(data) {
	//搜索
	return request({
		method: 'post',
		url: '/openApi/sysCourse/search',
		data,
	})
}

export function openApiSysCourseFiles(data) {
	//搜索 文件类型搜索
	return request({
		method: 'post',
		url: '/openApi/sysCourseFiles/searchFile',
		data,
	})
}

export function sysEvaluateGetAvgScore(data) {
	//查询评价平均分
	return request({
		method: 'post',
		url: '/openApi/sysEvaluate/getAvgScore',
		data,
	})
}

export function openApiSysCourseSubTypeQuery(data) {
	//库二级类型管理信息分页列表
	return request({
		method: 'get',
		url: '/openApi/sysCourseSubType/query',
		params: data,
	})
}

export function openApiSysCourseRelatedRecommend(data) {
	//课程相关推荐
	return request({
		method: 'get',
		url: '/openApi/sysCourse/relatedRecommend',
		params: data,
	})
}

export function openApiSysKnowledgeRelatedRecommend(data) {
	//知识点--相关推荐
	return request({
		method: 'get',
		url: '/openApi/sysKnowledge/relatedRecommend',
		params: data,
	})
}

export function openApiTbSysUserQuery(data) {
	//用户管理 - 用户列表
	return request({
		method: 'get',
		url: '/openApi/tbSysUser/query',
		params: data,
	})
}

// http://localhost:9095/cqsz/openApi/spiderTask/add
export function openApiSpiderTaskAdd(data) {
	//采集测试接口
	return request({
		method: 'get',
		url: '/openApi/spiderTask/add',
		params: data,
	})
}

// /openApi/spiderTask/preview{?baseUrl,pageSelector}
export function openApiSpiderTaskPreview(data) {
	//预览网页
	return request({
		method: 'post',
		url: '/openApi/spiderTask/preview',
		data,
	})
}

export function openApiSpiderTaskExecute(data) {
	//执行爬虫任务
	return request({
		method: 'post',
		url: '/openApi/spiderTask/execute',
		data,
	})
}

export function openApiNoticePageList(data) {
	//查询通知公告
	return request({
		method: 'get',
		url: '/sysNotice/openApi/query',
		params: data,
	})
}